#include <iostream>

#define MAX_DIGITS 600

class bignum
{

private:

  int digits[MAX_DIGITS];
  char print_buffer[MAX_DIGITS+1];
  void normalize (void);
  void init (void);

public:

  bignum (void);
  bignum (const char *i);
  bignum (int i);
  bignum operator+ (const bignum &b);
  char *print (void);

};

std::ostream &operator << (std::ostream &s, bignum b);

